package de.fhaugsburg.games.boardgames.scrabble.application;

import de.fhaugsburg.games.boardgames.exceptions.GameException;
import de.fhaugsburg.games.boardgames.scrabble.ScrabbleBoard;
import de.fhaugsburg.games.boardgames.scrabble.ScrabbleEngine;
import de.fhaugsburg.games.boardgames.scrabble.consoleui.BoardView;
import de.fhaugsburg.games.boardgames.scrabble.consoleui.CommandProcessor;

public class ScrabbleLauncher {

	/**
	 * The launcher for the scrabble game.
	 * @param args
	 * @throws GameException 
	 */
	public static void main(String[] args) throws GameException {
		
		
		
		ScrabbleEngine engine = new ScrabbleEngine();
		BoardView boardView = new BoardView(engine.getBoard());
		
		CommandProcessor cp = new CommandProcessor(engine, boardView);
		cp.process();

	}

}
